<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
	request.setCharacterEncoding("UTF-8");
	String path = "/projectv5/";
	String suffix = ".jsp";
	String member = "member/";
	String board = "board/";
	String action = request.getParameter("action");
	if (action == null) {
		action = path + "index" + suffix;
	} else if (action.equals("login")) {
		action = path + member + action + suffix;
	} else if (action.equals("loginok")) {
		action = path + member + action + suffix;
	} else if (action.equals("join")) {
		action = path + member + action + suffix;
	} else if (action.equals("joinok")) {
		action = path + member + action + suffix;
	} else if (action.equals("myinfo")) {
		action = path + member + action + suffix;
	} else if (action.equals("list")) {
		action = path + board + action + suffix;
	} else if (action.equals("write")) {
		action = path + board + action + suffix;
	} else if (action.equals("writeok")) {
		action = path + board + action + suffix;
	} else if (action.equals("view")) {
		action = path + board + action + suffix;
	} else if (action.equals("update")) {
		action = path + board + action + suffix;
	} else if (action.equals("updateok")) {
		action = path + board + action + suffix;
	} else if (action.equals("deleteok")) {
		action = path + board + action + suffix;
	}
%>
<!DOCTYPE html>
<html lang="ko">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>JSP 프로젝트 v5</title>
		<link type="text/css" href="css/layout.css" rel="stylesheet" />
	</head>
	<body>
		<%@ include file="./layout/header.jspf" %>
		<%-- header --%>
		
		<jsp:include page="<%=action %>" />
		<%-- content --%>
		
		 <%@ include file="./layout/footer.jspf" %>
		 <%-- footer --%>		
	</body>
</html>
